<template>
  <div>
      <h2 @click="showName">学生名字：{{name}}</h2>
      <h2>学生年龄：{{age}}</h2>
      <h2>学生性别：{{sex}}</h2>
  </div>
</template>

<script>
import {hunhe} from '../mixin'
    export default {
        name:'StudentMixin',
        data () {
            return {
                name:'张三',
                age:12,
                sex:'男'
            }
        },
       mixins:[hunhe]
    }
</script>

<style scoped>

</style>